import request from '@/utils/request'

export function getCode(mobile) {
  return request({
    url: '/account/sendSmsCode',
    method: 'post',
    data: {
      mobile
    }
  })
}

export function login(data) {
  return request({
    url: '/account/login',
    method: 'post',
    data
  })
}

export function resetPassword(data) {
  return request({
    url: '/account/modifpwd',
    method: 'post',
    data
  })
}
